﻿<Local:NavigationView
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    x:Class="SeriesManager.View.MediaDetailView"
    NavigationCacheMode="Enabled"    
    xmlns:Local="using:SeriesManager.View">
    
    <Grid Background="Black">
        <Grid.ChildrenTransitions>
            <TransitionCollection>
                <EntranceThemeTransition/>
            </TransitionCollection>
        </Grid.ChildrenTransitions>
        
        <FlipView ItemsSource="{Binding View}">
            <FlipView.ItemTemplate>
                <DataTemplate>
                    <Image Stretch="Uniform" Source="{Binding LocalPath}" />
                </DataTemplate>
            </FlipView.ItemTemplate>
        </FlipView>

        <ProgressRing IsActive="{Binding Loading}" Width="200" Height="200" Background="Transparent" Foreground="White" />

        <Grid Style="{StaticResource CommandBarGridStyle}">
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
                <AppBarButton x:Uid="AcceptAppBarButton" Icon="Accept" Command="{Binding OKCommand}" />
                <AppBarButton x:Uid="CancelAppBarButton" Icon="Cancel" Command="{Binding BackCommand}" />
            </StackPanel>
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Left">
                <AppBarButton x:Uid="LockScreenAppBarButton" Icon="SetLockScreen" Command="{Binding LockScreenCommand}" />
                <AppBarButton x:Uid="SavePictureAppBarButton" Icon="Save" Command="{Binding SavePictureCommand}" />
            </StackPanel>
        </Grid>
    </Grid>
</Local:NavigationView>
